Skip to main content
PATCH
/
api
/
v2
/
contact
/
{contact_id}
/
attribute
/
{api_name}
/
{item_id}
Update a sub-resource item (unsupported api_name -> 400)
curl --request PATCH \
  --url https://api.example.com/api/v2/contact/{contact_id}/attribute/{api_name}/{item_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "is_primary": true
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "envelope": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "email": "jsmith@example.com",
      "is_primary": true,
      "labels": []
    }
  }
}

Authorizations

Authorization
string
header
required

Reevo API key passed as Authorization: Bearer <api-key>.

Path Parameters

contact_id
string<uuid>
required
api_name
string
required
item_id
string<uuid>
required

Body

application/json
{key}

Response

Successful Response

Wrapper around a single SubResourceItemData.

data
SubResourceItemData · object
required

Sub-resource item: the item's id plus the raw compound payload.